import request from './request';


export const delIdentity = (bindInfo:any)=> request.request({
    url: '/user/delIdentity',
    data: {
        ...bindInfo
    },
    method: "post"
})

export const findIdentity = (bindInfo:any)=> request.request({
    url: '/user/bindInfo',
    data: {
        ...bindInfo
    },
    method: "get"
})


export const setIdentity = (bindInfo:any)=> request.request({
    url: '/user/bindInfo',
    data: {
        ...bindInfo
    },
    method: "post"
})



export const UserInfo = ()=> request.get('/user/info'); 

export const flashClass = (pSysInfo:any)=> request.request({
    url: '/user/flashClass',
    data: {
        ...pSysInfo
    },
    method: "post"
})

export const stopflashClass = (pSysInfo:any)=> request.request({
    url: '/user/stopflashClass',
    data: {
        ...pSysInfo
    },
    method: "post"
})


export const getFlashTime = (pSysInfo:any)=> request.request({
    url: '/user/getFlashTime',
    data: {
        ...pSysInfo
    },
    method: "post"
})


export const getNewClassInfo = (pSysInfo:any)=> request.request({
    url: '/user/getNewflashClass',
    params: {
        ...pSysInfo
    },
    method: "post"
})

export const getAllClassInfo = (pSysInfo:any)=> request.request({
    url: '/user/AllClassInfo',
    params: {
        ...pSysInfo
    },
    method: "get"
})

export const Login = (loginParams: object)=> request({
    url: '/user/login',
    data: {
        ...loginParams
    },
    method: "post"
})